import axios from "axios";

export default function () {
    return axios({
        method: "get",
        url: "/api/courses/time"
    }).then(response => {
        return response.data;
    }).catch(error => {
        return {
            total: 0,
            msg: error.response.data.msg
        }
    });
}